<h2><?php print $header?></h2>
<p><?php print $this->lang->line( 'article_info' )?></p>
<div id="edit-form" class="form-border" style="float: left; width: <?php print ( !empty( $original ) ) ? '49%' : '99%'; ?>">
<?php print form_open('article/user/article/'.$referer.'/'.$this->validation->id.'/'.$language_id, array( 'class' => 'horizontal', 'accept-charset' => 'UTF-8' ) )?>
    <fieldset>
        <ol>
            <li>
                <?php print form_label( $this->lang->line('article_article_title'), 'article_title')?>
                <?php print form_input( 'article_title', $this->validation->article_title,'id="article_title" class="text"')?>
            </li>
            <li>
                <?php print form_label( $this->lang->line('article_teaser'), 'teaser' )?>
                <?php print form_textarea( 'teaser', $this->validation->teaser )?>
            </li>
            <li>
                <?php print form_label( $this->lang->line('article_body_text'), 'body_text' )?>
                <?php print form_fckeditor( $fckeditor, $this->validation->body_text)?>
            </li>
            <li>
                <?php print form_label( $this->lang->line('article_category'), 'category_id' )?>
                <?php print form_dropdown( 'category_id', $category, $this->validation->category_id, 'id="category_id" size="10" style="width:20.3em;"' )?>
            </li>
            <li>
                <?php print form_label( $this->lang->line( 'article_active' ), 'active' )?>
                <?php print $this->lang->line( 'general_yes' ) ?> <?php print form_radio( 'active', '1', $this->validation->set_radio( 'active', '1' ), 'id="active"' )?>
                <?php print $this->lang->line( 'general_no' ) ?> <?php print form_radio( 'active', '0', $this->validation->set_radio( 'active', '0' ) )?>
            </li>
            <li class="submit">
                <?php print form_hidden( 'id', $this->validation->id )?>
                <div class="buttons">
	                <button type="submit" class="positive" name="submit" value="submit">
	                	<?php print $this->bep_assets->icon( 'disk' );?>
	                	<?php print $this->lang->line( 'general_save' )?>
	                </button>
	                <a href="<?php print site_url( 'article/user/article' )?>" class="negative">
	                	<?php print $this->bep_assets->icon( 'cross' );?>
	                	<?php print $this->lang->line( 'general_cancel' )?>
	                </a>
	            </div>
            </li>
        </ol>
    </fieldset>
<?php print form_close( )?>
</div>
<?php if( !empty( $original ) ) { ?>
<div id="translate-form" class="form-border" style="width:49%">
    <fieldset>
        <ol>
            <li>
                <?php print form_label( $this->lang->line('article_article_title'), 'article_title')?>
                <?php print $original['article_title']; ?>
            </li>
            <li>
                <?php print form_label( $this->lang->line('article_teaser'), 'teaser' )?>
                <?php print $original['teaser']; ?>
            </li>
            <li>
                <?php print form_label( $this->lang->line('article_body_text'), 'body_text' )?>
                <?php print $original['body_text']; ?>
            </li>
            <li>
                <?php print form_label( $this->lang->line('article_category'), 'category_id' )?>
                <?php print $original['category_id']; ?>
            </li>
            <li>
                <?php print form_label( $this->lang->line( 'article_active' ), 'active' )?>
                <?php print $original['active']; ?>
            </li>
        </ol>
    </fieldset>
</div>
<?php  } ?>